﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Foo.Contract;

namespace Foo.Tester
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Simple_Click(object sender, RoutedEventArgs e)
        {
            var c = new FooManager();
            c.Simple();
        }

        private void Basic_Click(object sender, RoutedEventArgs e)
        {
            var c = new FooManager();
            c.Basic(42);
        }

        private void Complex_Click(object sender, RoutedEventArgs e)
        {
            var c = new FooManager();
            c.Complex(new Bar(), 42);
        }

        private void Error_Click(object sender, RoutedEventArgs e)
        {
            var c = new FooManager();
            c.Error();
        }

        private void Wait_Click(object sender, RoutedEventArgs e)
        {
            var c = new FooManager();
            c.Wait(1);
        }

        private void WaitLong_Click(object sender, RoutedEventArgs e)
        {
            var c = new FooManager();
            c.Wait(7);
        }
    }
}
